package cn.antho.shop.service.impl;

import cn.antho.shop.domain.ShopBuy;
import cn.antho.shop.mapper.ShopBuyMapper;
import cn.antho.shop.service.IShopBuyService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author director
 * @since 2022-11-18
 */
@Service
public class ShopBuyServiceImpl extends ServiceImpl<ShopBuyMapper, ShopBuy> implements IShopBuyService {

    @Autowired
    private ShopBuyMapper shopBuyMapper;

    @Override
    public void add(ShopBuy shopBuy) {
        shopBuyMapper.insert(shopBuy);
    }

    @Override
    public ShopBuy getById(Long id) {
        return shopBuyMapper.getById(id);
    }
}
